golang/xenlight: begin C to Go type marshaling
authorNick Rosbrook <rosbrookn@ainfosec.com>
Mon, 16 Dec 2019 18:08:09 +0000 (18:08 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 16 Dec 2019 18:08:09 +0000 (18:08 +0000)
commitcc8e54a1a245d8ad35902997a28603018d90444e
treea79feea8ca8c4879bfe24457e4fbb5c1f06c5318
parentd916bf3f7e407fd0c4a7d3a746f6846e84aa36b2
golang/xenlight: begin C to Go type marshaling

Begin implementation of fromC marshaling functions for generated struct
types. This includes support for converting fields that are basic
primitive types such as string and integer types, nested anonymous
structs, nested libxl structs, and libxl built-in types.

This patch does not implement conversion of arrays or keyed unions.

Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
tools/golang/xenlight/Makefile
tools/golang/xenlight/gengotypes.py
tools/golang/xenlight/helpers.gen.go [new file with mode: 0644]
tools/golang/xenlight/xenlight.go